From 0ff779172d5588f8711252e802eb888a3fc68982 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 25 Dec 2008 08:08:13 +0000 Subject: [PATCH] (shadow-copy-file): Revert previous change. This code as it was should work properly with buffer-swapped-with. --- lisp/shadowfile.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el index ece12c367e1..04da2c5eb3e 100644 --- a/lisp/shadowfile.el +++ b/lisp/shadowfile.el @@ -575,13 +575,7 @@ site." (set-buffer buffer) (condition-case i (progn - (if buffer-swapped-with - (progn - (buffer-swap-text buffer-swapped-with) - (unwind-protect - (write-region nil nil to) - (buffer-swap-text buffer-swapped-with))) - (write-region nil nil to)) + (write-region nil nil to) (shadow-remove-from-todo s)) (error (message "Shadow %s not updated!" (cdr s))))))) -- 2.30.2